from kivy.uix.slider import Slider

from common import KvLoad
from ui.base import UIMix


class MusicSlider(Slider, UIMix):

    def __init__(self, **kwargs):
        KvLoad.load(__file__)
        super().__init__(**kwargs)

    def set_value(self, value):
        self.value = min(self.max, value)
